﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Drawing;
using System.Windows.Forms;

using DreamCube.Foundation.Basic.Utility;

namespace Test
{
    public static class TestClipboard
    {
        public static void TestClipBoard()
        {
            //Clipboard.GetData();
            //IDataObject data = System.Windows.Forms.Clipboard.GetDataObject();
            //if (data.GetDataPresent(typeof(Bitmap)))
            //{
            //    Image photo = (Image)data.GetData(typeof(Bitmap));
            //}
            if (Clipboard.ContainsImage())
            {
                 Image img = Clipboard.GetImage();
                 if (img != null)
                 {
                     img.Save("d:\a.png");
                 }
            }
        }
    }
}
